﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpaceNeedle.x6473.WindowsPhone.Common
{
    public class TimeOfTheDayImageChooser
    {
        public Uri CurrentTimeImage
        {
            get
            {
                int hour = DateTime.Now.Hour;
  
                if(hour >= 5 && hour <= 18) //Day
                {
                    return new Uri("/Assets/background-sp1.jpg", UriKind.Relative);
                }

                //Night
                return new Uri("/Assets/background-sp2.jpg", UriKind.Relative);
            }
        }
    }
}
